﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        System.Data.DbHelper helper1 = new DbHelper(DatabaseType.SqlServer, @"Data Source=.;Initial Catalog=aaa;Integrated Security=True");

        System.Data.DataTable source = new DataTable();

        public Form1()
        {
            InitializeComponent();

            XCoder.DatabaseInfo db = new XCoder.DatabaseInfo("HIS",DatabaseType.SqlServer, @"Data Source=.;Initial Catalog=MRMS;Integrated Security=True");
            //db.GetTables();

            db.GetTables();
            textBox1.Text = db.ToModelCode();


            //bool s = typeof(string).IsValueType;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            //var cell = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];

            //MessageBox.Show(cell.ValueType.FullName);
        }
    }



}
